package com.fuhui.controller;

import com.fuhui.util.SnowFlake;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("util")
public class UtilController {

    @RequestMapping("getUID")
    public long getUID(){
        SnowFlake snowFlake = new SnowFlake(2, 3);
        System.out.println("iConfigid=="+snowFlake.nextId());
        return snowFlake.nextId();
    }


}
